Untitled.ipynb
No Headings
The table of contents shows headings in notebooks and supported files.
- File
- Edit
- View
- Run
- Kernel
- Settings
- Help
Kernel status: Idle Executed 2 cellsElapsed time: 4 seconds
[44]:
Selection deleted
ciudad = input("escbribe el nombre de la ciudad")
ciudades =["delhi","paris","nueva_york","rio_de_janeiro",]
monumentos =["red_fort","torre_eiffel","etatua_de_la_libertad","cristo_redentor",]
print("el monumento es",monumentos[ciudades.index(ciudad)])
escbribe el nombre de la ciudad paris
el monumento es torre_eiffel
[38]:
edad = int(input("escribe tu edad "))
if edad>18:
print("el puede votar")
elif edad<18:
print("no puede votar")
escribe tu edad 16
no puede votar
[33]:
numeroA = int(input("escribe el numero"))
numeroB = int(input("escribe el numero"))
if numeroA>numeroB:
print("el numero es mayor")
elif numeroA<numeroB:
print("el numero es menor")
escribe el numero 9 escribe el numero 11
el numero es menor
[40]:
Selection deleted
edad =[]
personaA = int(input("escribe tu edad"))
edad.append(personaA)
personaB= int(input("escribe tu edad"))
edad.append(personaB)
personaC = int(input("escribe tu edad"))
edad.append(personaC)
personaD = int(input("escribe tu edad"))
edad.append(personaD)
print(edad)
print("eres el menor :" ,min(edad))
escribe tu edad 15 escribe tu edad 16 escribe tu edad 17 escribe tu edad 14
[15, 16, 17, 14] eres el menor : 14
[ ]:
Common Tools
No metadata.
Advanced Tools
No metadata.
Anaconda Assistant
AI-powered coding, insights and debugging in your notebooks.
To enable the following extensions, create an account or sign in.
- Anaconda Assistant4.1.0
- Coming soon!
- Data Catalogs
- Panel Deployments
- Sharing
Already have an account? Sign In
For more information, read our Anaconda Assistant documentation.
![Python [conda env:base] *](./practica8_files/logo-64x64.png)